package com.ueboot.weishop.service.customer;

import com.ueboot.weishop.entity.activity.ActivityEntity;
import com.ueboot.weishop.entity.customer.CustomerCouponEntity;
import com.ueboot.weishop.entity.customer.CustomerInfoEntity;
import com.ueboot.weishop.entity.order.OrderIssueEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;

/**
 * Created by Neel on 2017/9/24.
 */
public interface CustomerCouponService {
    Page<CustomerCouponEntity> findBy(Pageable pageable);

    Page<CustomerCouponEntity> findBy(Pageable pageable, String keyword);

    void saveActivityCoupon(CustomerInfoEntity customer, ActivityEntity activityEntity, String customerType, String vin, String dealer, String projectCode, int amount, String beginDate, String endDate);

    String getSeqNo();

    List<CustomerCouponEntity> findByVinAndSource(String vin, String groupCode, String customerType);

    CustomerCouponEntity save(CustomerCouponEntity s);

    /**
     * 保存优惠券信息，同时下发DMS表数据
     * @param s
     * @param issueEntity
     */
    void save(CustomerCouponEntity s,OrderIssueEntity issueEntity );

    CustomerCouponEntity get(Long id);

    void delete(Long id);

    void delete(Long[] ids);

	List<CustomerCouponEntity> findByCustomerOpenId(String openId);
}
